package JDK常用类库.序列化和反序列化;

import static JDK常用类库.序列化和反序列化.StudentClone.myClone;

/**
 * @author zx
 * @create 2022-10-14 11:53
 */
public class Test {
    public static void main(String[] args) {
        Student student = new Student();
        student.setName("张三");
        student.setAddress("地球");
        student.setSex("男");
        System.out.println("第一个学生："+student);

        Student anotherStudent = null;
        System.out.println("深拷贝前的第二个学生："+anotherStudent);

        anotherStudent = myClone(student);
        System.out.println("深拷贝后的第二个学生："+anotherStudent);
    }
}
